package com.pay.sdk.service.channel3;

import java.util.HashMap;

import com.pay.sdk.service.np.NpPay;
import com.pay.sdk.service.pay.ZsPrePayQuery;

public class ChannelThreePay {
	

	//一网通
	public static String prePay(String out_trade_no, String total_fee, String body, String card_type,String client_ip,
			String mobile, String notify_url,String time_expire, String return_url, String attach, String lon,String lat) {
		HashMap<String, String> params = new HashMap<String, String>();
	    params.put("out_trade_no", out_trade_no);
	    params.put("total_fee", total_fee);
	    params.put("body", body);
	    params.put("card_type", card_type);
	    params.put("client_ip", client_ip);
	    params.put("mobile", mobile);
	    params.put("notify_url", notify_url);
	    params.put("time_expire", time_expire);
	    params.put("return_url", return_url);
	    params.put("attach", attach);
	    params.put("lon", lon);
	    params.put("lat", lat);
	    return new NpPay().build(params);
	}

	
	public static String prePayQuery(String out_trade_no, String transation_id, String out_transation_id) {
		HashMap<String, String> params = new HashMap<String, String>();  
		params.put("out_trade_no", out_trade_no);
	    params.put("transation_id", transation_id);
	    params.put("out_transation_id", out_transation_id);
	    return new ZsPrePayQuery().exec(params);
	}

}
